package com.school.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.school.entity.HljtDevice;
import com.school.entity.HljtSetting;
import com.school.entity.HljtVersion;
import com.school.entity.android.WithTheNew;
import com.school.entity.web.HljtDeviceManagement;

public interface HljtOtherInterfacesService {
	/**
	 * 当前设备是否有跟新
	 * @param HljtDevice
	 * @return
	 */
	public Map<String, Object> withTheNew(HljtDevice HljtDevice,String type);
	
	
	/**
	 * 设备开关机时间
	 */
	public HljtSetting switchTime();
	
	/**
	 * 添加升级包
	 */
	boolean addHljtVersion(HljtVersion hljtVersion);
	/**
	 * 设备升级信息
	 */
	Map<String , Object>deviceUpgradeInfo(Integer pageSize , Integer pageIndex );
	
	/***
	 * 需要升级的设备修改状态
	 * @return
	 */
	boolean needupgradeDevice(List<HljtDeviceManagement> list);
	/***
	 * 修改所有设备模式的状态
	 * @return
	 */
	void updateDeviceAllModify(HljtDevice hljtDevice);
	/***
	 * 修改单个或者多个设备模式的状态
	 * @return
	 */
    void updateDeviceOneModify(List<HljtDeviceManagement>updatelist);
    /***
	 * 通过班级获得mac
	 * @return
	 */
	String findDeviceByClassId(Integer classId);
	
	/***
	 * 通过班级修改设备模式状态
	 * @return
	 */
	 void modifyByCalssId(Integer calssid) ;

}
